import { ApiProperty } from '@nestjs/swagger';

export class CommentAddDto {
  @ApiProperty({ description: '根评论id(-1为根评论)' })
  rootId?: number;

  @ApiProperty({ description: '文章id' })
  articleId: number;

  @ApiProperty({ description: '创建人id' })
  createBy: number;

  @ApiProperty({ description: '评论内容' })
  content: string;

  @ApiProperty({ description: '所回复的目标评论id(没有为-1)' })
  toCommentId?: number;

  @ApiProperty({ description: '所回复的目标用户id(没有为-1)' })
  toCommentUserId?: number;
}
